package core.dao;

import java.util.ArrayList;
import java.util.List;

public class SQLCommand {
	private String clause;

	private List<Object> parameters = new ArrayList<Object>();

	public SQLCommand() {
	}

	public String getClause() {
		return clause;
	}

	public void setClause(String clause) {
		this.clause = clause;
	}

	public void addParameter( Object value ) {
		this.parameters.add( value );
	}

	public void clearParameters() {
		parameters.clear();
	}
	
	public void dump() {
		System.out.println( "SQLClause=[" + clause + "]" );
		for ( int i=0; i < parameters.size(); i++ ) {
			System.out.println( "Parameter[" + i + "]=[" + parameters.get(i) + "]" );
		}
	}

	public List<Object> getParameters() {
		return parameters;
	}

	public void setParameters(List<Object> parameters) {
		this.parameters = parameters;
	}
}